﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class 枚举
    {
        public enum Status
        {
            新订单,
            已发货,
            已签收,
            已评价
        }
        public enum Fruit
        {
            西瓜 = 5,
            哈密瓜 = 10,
            苹果 = 15,
            香蕉 = 20,
            奇异果 = 25,
            草莓 = 30,
            葡萄 = 35
        }
        public enum Rpg
        {
            战士的技能 = 1,
            法师的技能,
            精灵的技能

        }
        static void Main(string[] args)
        {
            while (true)
            {
                Console.WriteLine();
                Console.WriteLine("请根据数字输入你要知道作业");
                Console.WriteLine("1.订单 2.切水果 3.RPG");
                int key = int.Parse(Console.ReadLine());
                switch (key)
                {
                    case 1:
                        Test01();
                        break;
                    case 2:
                        Test02();
                        break;
                    case 3:
                        Test03();
                        break;
                    default:
                        break;
                }
            }
        }
        static void Test01()
        { 
            Console.WriteLine("该订单的状态为：{0}", Status.已发货);
        }
        static void Test02()
        {
            Console.WriteLine();
            Console.WriteLine("请根据数字输入你要知道分数的水果");
            Console.WriteLine("1.西瓜、2.哈密瓜、3.苹果、4.香蕉、5.奇异果、6.草莓、7.葡萄");
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    Console.WriteLine("西瓜的分数为：{0}", (int)Fruit.西瓜);
                    break;
                case 2:
                    Console.WriteLine("哈密瓜的分数为：{0}", (int)Fruit.哈密瓜);
                    break;
                case 3:
                    Console.WriteLine("苹果的分数为：{0}", (int)Fruit.苹果);
                    break;
                case 4:
                    Console.WriteLine("香蕉的分数为：{0}", (int)Fruit.香蕉);
                    break;
                case 5:
                    Console.WriteLine("奇异果的分数为：{0}", (int)Fruit.奇异果);
                    break;
                case 6:
                    Console.WriteLine("草莓的分数为：{0}", (int)Fruit.草莓);
                    break;
                case 7:
                    Console.WriteLine("葡萄的分数为：{0}", (int)Fruit.葡萄);
                    break;
                default:
                    break;
            }
        }
        static void Test03()
        {
            Console.WriteLine();
            Console.WriteLine("请根据数字输入你要知道职业技能");
            Console.WriteLine("1.战士、2.法师、3.精灵");
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    Console.WriteLine("{0}：碎石打击、烈焰锚钩、战斗咆哮", Rpg.战士的技能);
                    break;
                case 2:
                    Console.WriteLine("{0}：巨浪冲击、元素突击、复仇杀戮", Rpg.法师的技能);
                    break;
                case 3:
                    Console.WriteLine("{0}：减速陷阱、能量浪潮、旋风剑舞", Rpg.精灵的技能);
                    break;
                default:
                    break;
            }

        }
    }
}
